package com.yly.common;

import lombok.Data;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

//@SpringBootApplication(scanBasePackages = {"com.yly.input.common"})
// public class CommonApplication {
//    public static void main(String[] args) {
//        SpringApplication.run(CommonApplication.class, args);
//    }
//}

public class CommonApplication {

  private static final Logger log = LoggerFactory.getLogger(CommonApplication.class);

  public static void main(String[] args) {
    log.info("------------common start---------------");

    // SourceObject source = new SourceObject();
    // source.setField1("value1");
    // source.setField2(123);
    //
    // TargetObject target = ConvertUtils.convert(source, TargetObject.class);
    // System.out.println(target.getField1());
    // System.out.println(target.getField2());
  }
}

@Data
class SourceObject {

  private String field1;
  private int field2;

  // Getters and setters
}

@Data
class TargetObject {

  private String field1;
  private int field2;

  // Getters and setters
}